﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WodLib
{
    [Serializable()]
    [System.ComponentModel.Editor(typeof(WodLib.Controls.InventoryEditor), 
        typeof (System.Drawing.Design.UITypeEditor))]
    public class HumanInventory : ICloneable
    {
        public List<Item> ItemsList
        {
            get;
            set;
        }

        public HumanInventory()
        {
            ItemsList = new List<Item>();
        }

        #region ICloneable Members

        public object Clone()
        {
            HumanInventory tmp = (HumanInventory)this.MemberwiseClone();
            tmp.ItemsList = new List<Item>();
            foreach (var item in this.ItemsList)
            {
                tmp.ItemsList.Add((Item)item.Clone());
            }
            return tmp;
        }

        #endregion
    }
}
